﻿using System;

namespace Common.Utils
{
    public static class Extensions
    {
        public static string Append(this string current, string key, string value)
        {
            return String.IsNullOrEmpty(value) ? current : current + key + value + "&";
        }

        public static string SetEmptyIfNull(this string current)
        {
            return current ?? string.Empty;
        }
    }
}
